package com.chanct.test;

public class threadDemo1 implements Runnable{
	public threadDemo1(int count){
		this.count = count;
	}
	private int count;
	public void run() {
		while(count>0){
//			if(count==4){
//				System.out.println("线程礼让");
//				Thread.currentThread().yield();
//			}
			System.out.println(Thread.currentThread().getName()+":"+count--);
		}
	}

}
